load("@rules_rust//rust:defs.bzl", "rust_doc_test", "rust_library")

package(default_visibility = ["//visibility:public"])

DEPENDENCIES = [
    # Keep sorted.
    "//rs/config",
    "//rs/monitoring/logger",
    "//rs/protobuf",
    "@crate_index//:parking_lot",
    "@crate_index//:serde_json",
    "@crate_index//:slog",
    "@crate_index//:slog-async",
]

MACRO_DEPENDENCIES = []

ALIASES = {}

rust_library(
    name = "in_memory_logger",
    srcs = glob(["src/**/*.rs"]),
    aliases = ALIASES,
    crate_name = "ic_test_utilities_in_memory_logger",
    proc_macro_deps = MACRO_DEPENDENCIES,
    deps = DEPENDENCIES,
)

rust_doc_test(
    name = "in_memory_logger_doc_test",
    crate = ":in_memory_logger",
)
